﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Web.Configuration;

namespace AFT.Parking.Foundation.Extensions
{
    public static class URL
    {
        public static string ResourcePath(this string path)
        {
            string resourceDomain = WebConfigurationManager.AppSettings["ResourceDomain"].ToString();
            if (string.IsNullOrEmpty(resourceDomain))
            {
                return path;
            }
            else
            {
                return string.Format("http://{0}{1}", resourceDomain, path);
            }
        }
    }
}
